package ren.kane.asdppp.transaction.change.classification;

import ren.kane.asdppp.classification.PaymentClassification;
import ren.kane.asdppp.classification.SalariedClassification;
import ren.kane.asdppp.schedule.MonthlySchedule;
import ren.kane.asdppp.schedule.PaymentSchedule;

/**
 * @author renrk(1275) on 2019-04-20 9:17 PM
 **/
public class ChangeSalariedTransaction extends ChangeClassificationTransaction {

    private double salary;

    public ChangeSalariedTransaction() {
    }

    public ChangeSalariedTransaction(int empId, double salary) {
        super(empId);
        this.salary = salary;
    }

    @Override
    protected PaymentClassification getClassification() {
        return new SalariedClassification(salary);
    }

    @Override
    protected PaymentSchedule getSchedule() {
        return new MonthlySchedule();
    }
}
